package cn.itcast.order;


import com.cwj.openfign.config.DefaultFeignConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


import org.springframework.cloud.openfeign.EnableFeignClients;

@MapperScan("cn.itcast.order.mapper")
@SpringBootApplication
@EnableFeignClients(basePackages = "com.cwj.openfign" ,
        defaultConfiguration = DefaultFeignConfiguration.class)
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }


////    远程调用bean
//    @Bean
//    @LoadBalanced   //负载均衡调用注解
//    public RestTemplate createRestTemplate(){
//        return new RestTemplate();
//    }

}